﻿using EncoderModel;
using System.Text;

namespace Virginia
{
    /// <summary>
    /// 维吉尼亚加密法测试
    /// </summary>
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Please enter your plaintext:");
            string plain = Console.ReadLine();
            Console.WriteLine("Please enter the key:");
            string key = Console.ReadLine();

            ///加密
            MyEncoder Encoder = new MyEncoder();
            Encoder.PlainText = plain;
            Encoder.Key = key;
            Encoder.Encryption();

            ///输出密文
            Console.WriteLine($"Your cypher is:{Encoder.Cypher}");
        }
    }
}